import matplotlib.pyplot as plt
from settings import rc_params_toChinese, set_cubes_ax

# 设置matplotlib参数
plt.style.use('_mpl-gallery')
plt.rcParams.update(rc_params_toChinese)
plt.subplots_adjust(left=0.25, bottom=0.1, right=0.9, top=0.9)

# 横坐标值
input_values = range(1, 5001)
# 立方值
cubes = [i**3 for i in input_values]

ax = plt.subplot()
ax.scatter(input_values, cubes, c=cubes, cmap=plt.cm.Blues,s=40)

ax = set_cubes_ax(ax)

ax.ticklabel_format(style='plain')

# 查看绘图
plt.show()